package com.cloudfun.campusshare.repo;

import com.cloudfun.campusshare.common.constant.BidStatus;
import com.cloudfun.campusshare.entity.BidEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by Huqin on 2020/4/8
 */
public interface BidEntityRepo extends
        PagingAndSortingRepository<BidEntity, String>,
        JpaSpecificationExecutor<BidEntity> {

    List<BidEntity> findAllByStatus(BidStatus status);

}
